package com.itheima.demo.demo05;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.lang.Exception;
import java.text.ParseException;
import java.text.SimpleDateFormat;

public class TryCatch {
    public static void main(String[] args) {
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");

        try {
            sdf.parse("1990-09-13");
         //   FileInputStream fis=new FileInputStream("a.text");
        }catch (ParseException e) {
            e.printStackTrace();
            System.out.println("格式错误");
        } /*catch (FileNotFoundException e) {
            e.printStackTrace();
            System.out.println("类型错误");
        } */


    }
}